<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../../public/common.jsp"%>
<body>
	<form class="layui-form">
		<input type="hidden" name="pid" id="pid">
		<div class="layui-form-item">
			<label class="layui-form-label">父菜单名称</label>
			<div class="layui-input-block">
				<input type="text" id="pidName" name="pidName" lay-verify="title"
					autocomplete="off" readonly="readonly" placeholder="请输入父菜单名称" class="layui-input layui-unselect layui-disabled">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">菜单名称</label>
			<div class="layui-input-block">
				<input type="text" name="name" lay-verify="title"
					autocomplete="off" placeholder="请输入菜单名称" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">类型</label>
			<div class="layui-input-block">
				<select name="type" lay-filter="aihao">
					<option value="" selected="">请选择类型</option>
					<option value="1">目录</option>
					<option value="2">菜单</option>
					<option value="3">按钮</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">权限值</label>
			<div class="layui-input-block">
				<input type="text" name="permissionValue" lay-verify="title"
					autocomplete="off" placeholder="请输入权限值" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">路径</label>
			<div class="layui-input-block">
				<input type="text" name="uri" lay-verify="title"
					autocomplete="off" placeholder="路径" class="layui-input">
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">图标</label>
				<div class="layui-input-inline">
					<input type="text" name="icon" lay-verify="title"
						autocomplete="off" placeholder="请输入图片" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<button  type="button"  id="icon" class="layui-btn">查找图标</button>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序</label>
			<div class="layui-input-block">
				<input type="text" name="orders" lay-verify="title"
					autocomplete="off" placeholder="排序" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="permissionsAdd">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</body>
<!-- 加载js文件-->
<script type="text/javascript" src="/LarryMS/common/layui/layui.js"></script>
<script type="text/javascript">
	layui.cache.page = 'system/upms/permissions/addPermissions';
	layui.config({
		version : "1.0.0",
		base : '/LarryMS/common/'
	}).extend({
		larry : 'js/base'
	}).use('larry');
</script>

</html>